#!/usr/bin/env python
# -*- conding:utf-8 -*-
# __Author__:'liudong'
import pickle
#把用户信息以user:pass:amount的格式写入文本文件
# product = {
#                 '家电类': [('乐视电视', 7000), ('海尔冰箱', 5000), ('小天鹅洗衣机', 2000)],
#                 '衣服类': [('西装', 8000), ('休闲夹克', 2000), ('运动服', 800)],
#                 '手机类': [('Iphone7', 7000), ('小米Note', 2000), ('华为', 1000)],
#                 '车类': [('奔驰ML', 800000), ('特斯拉', 700000), ('奥迪Q7', 750000)]}
# pickle.dump(product, open('E:\\python2.7pro\\day3\homework2-ATM\db\\product_list.db','wb'))
shop_car=[]
welcom_msg = 'Welcome to Shopping Home'.center(50, '-')
    print(welcom_msg)

with open('E:\\python2.7pro\\day3\homework2-ATM\db\\product_list.db','rb') as aaa:
    product_list=pickle.load(aaa)
print(product_list)